home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 3_0 / DELTASOU / _ABOUT_D.ELT next >
Text File  |  1989-09-16  |  1KB  |  38 lines

  1. The following file contains the Think C 3.0 source code for
  2. the Delta Sound conversion utility. After processing with
  3. Delta Sound, a sound file will usually compress to a smaller
  4. size with the Huffman (and often LZW) compression algorithm.
  5.  
  6. This program does not reduce the amount of information in the
  7. file and the process is fully reversible. The source code is
  8. included so that interested people can improve it for their
  9. own purposes.
  10.  
  11. What does the application do?
  12.  
  13.     1) Start with Old=128.
  14.     2) Read a byte into New.
  15.     3) Write Old-New.
  16.     4) Old=New
  17.     5) Go to step 2 if there is more data.
  18.  
  19. To reverse the process:
  20.  
  21.     1) Start with Old=128.
  22.     2) Read a byte into New.
  23.     3) Old=Old-New
  24.     4) Write Old
  25.     5) Go to step 2 if there is more data.
  26.  
  27. As you can see, the amount of information does not change.
  28. The resource fork is left intact. This means that it is not
  29. useful to try to use this program on files that have the
  30. sounds in the resource fork. A separate resource converter
  31. could be written.
  32.  
  33. This process will usually save an additional 20% in your
  34. archives. The amount saved depends on the file, but higher
  35. sampling rates usually save more space.
  36.  
  37. Juri Munkki
  38. jmunkki@hut.fi